/*
*  Copyright 2019-2020 Zheng Jie
*
*  Licensed under the Apache License, Version 2.0 (the "License");
*  you may not use this file except in compliance with the License.
*  You may obtain a copy of the License at
*
*  http://www.apache.org/licenses/LICENSE-2.0
*
*  Unless required by applicable law or agreed to in writing, software
*  distributed under the License is distributed on an "AS IS" BASIS,
*  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*  See the License for the specific language governing permissions and
*  limitations under the License.
*/
package me.zhengjie.modules.system.domain;

import lombok.Data;
import cn.hutool.core.bean.BeanUtil;
import io.swagger.annotations.ApiModelProperty;
import cn.hutool.core.bean.copier.CopyOptions;
import javax.persistence.*;
import javax.validation.constraints.*;
import java.io.Serializable;

/**
* @website https://el-admin.vip
* @description /
* @author zhaoxiancheng
* @date 2023-10-30
**/
@Entity
@Data
@Table(name="exam_report_params")
public class ExamReportParams implements Serializable {

    @Column(name = "param_name",nullable = false)
    @NotBlank
    @ApiModelProperty(value = "报告名称")
    private String paramName;

    @Column(name = "te_zhi_desc")
    @ApiModelProperty(value = "特质综述")
    private String teZhiDesc;

    @Column(name = "ji_li_jian_yi")
    @ApiModelProperty(value = "激励建议")
    private String jiLiJianYi;

    @Column(name = "zhu_ming_ren")
    @ApiModelProperty(value = "著名人物")
    private String zhuMingRen;

    @Column(name = "fa_zhan_jian_yi")
    @ApiModelProperty(value = "发展建议")
    private String faZhanJianYi;

    @Column(name = "param_type")
    @ApiModelProperty(value = "1:成人。2:儿童")
    private Integer paramType;

    @Id
    @Column(name = "param_id")
    @ApiModelProperty(value = "主键")
    private String paramId;

    @Column(name = "he_li_jian_yi")
    @ApiModelProperty(value = "针对您首要特质的合理化建议")
    private String heLiJianYi;

    @Column(name = "feng_ge_neng_li")
    @ApiModelProperty(value = "显著风格以及能力")
    private String fengGeNengLi;

    @Column(name = "ya_li")
    @ApiModelProperty(value = "压力来源")
    private String yaLi;

    public void copy(ExamReportParams source){
        BeanUtil.copyProperties(source,this, CopyOptions.create().setIgnoreNullValue(true));
    }
}